package judesart.app.repository;

import java.util.List;

import judesart.app.domain.User;
import judesart.app.shared.ValidationException;

public interface UserDAO
{
    boolean deleteAllUsers();

    User findUserById(Long id);

    User findUserByUsername(String username);

    User createUser(User user) throws ValidationException;

    User updateUser(User user) throws ValidationException;

    List<User> findAllUsers();

    boolean deleteUser(Long userId);
    
    User findFeatured();
}
